|
@ -34,7 +34,12 @@ namespace CoviDok.Data.MySQL |
|
|
|
|
|
|
|
|
public List<Update> GetUpdatesForCase(int id) |
|
|
public List<Update> GetUpdatesForCase(int id) |
|
|
{ |
|
|
{ |
|
|
return (from u in context.Updates where u.CaseId == id select u).ToList(); |
|
|
List<Update> updates = (from u in context.Updates where u.CaseId == id select u).ToList(); |
|
|
|
|
|
foreach (Update update in updates) |
|
|
|
|
|
{ |
|
|
|
|
|
update.Images = (from i in context.Images where i.UpdateId == update.Id select i.ImageId).ToList(); |
|
|
|
|
|
} |
|
|
|
|
|
return updates; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public Update GetUpadte(int id) |
|
|
public Update GetUpadte(int id) |
|
|