public Award Post(AwardInputModel obj) { Award award = new Award { AwardShowID = obj.AwardShowID, AwardTypeID = obj.AwardTypeID, MediaID = obj.MediaID, Name = obj.Name, Year = obj.Year }; return(_awardData.Add(award)); }
public PlotKeywords Post(PlotInputModel obj) { PlotKeywords model = new PlotKeywords { KeywordName = obj.KeywordName }; var returned = _plotData.Add(model); _context.SaveChanges(); _context.MediaPlotKeywords.Add(new MediaPlotKeywords { KeywordID = returned.KeywordID, MediaID = obj.MediaID }); _context.SaveChanges(); return(model); }
public People Add(People people) { return(_peopleData.Add(people)); }