public void AddPathFilesProcess(string caption, string filePath, Idol idol, User user, int typeData) { Image image = new Image { Id = RandomId(16, true), Name = caption, DateTime = DateTime.Now, IdolId = idol.Id, UserId = user.Id, Url = filePath, IsVideo = typeData, IdImageRoot = "" }; _dBBlinkContext.Images.Add(image); _dBBlinkContext.SaveChanges(); }
public void Add(User entity) { _dBBlinkContext.Users.Add(entity); _dBBlinkContext.SaveChanges(); throw new NotImplementedException(); }