Avoid datainconsistency
This commit is contained in:
@@ -64,6 +64,7 @@
|
|||||||
MimeType = photo.ContentType,
|
MimeType = photo.ContentType,
|
||||||
Data = memoryStream.ToArray(),
|
Data = memoryStream.ToArray(),
|
||||||
Instruction = instruction,
|
Instruction = instruction,
|
||||||
|
Recipe = null,
|
||||||
};
|
};
|
||||||
|
|
||||||
_context.Add(instructionImage);
|
_context.Add(instructionImage);
|
||||||
@@ -107,6 +108,7 @@
|
|||||||
MimeType = mediaFile.ContentType,
|
MimeType = mediaFile.ContentType,
|
||||||
Data = memoryStream.ToArray(),
|
Data = memoryStream.ToArray(),
|
||||||
Recipe = recipe,
|
Recipe = recipe,
|
||||||
|
Instruction = null,
|
||||||
};
|
};
|
||||||
|
|
||||||
_context.MediaFiles.Add(newMedia);
|
_context.MediaFiles.Add(newMedia);
|
||||||
|
|||||||
Reference in New Issue
Block a user