public WhatYouNeedToKNowAboutThisProduct Save(WhatYouNeedToKNowAboutThisProduct model) { var modelObj = _context.WhatYouNeedToKNowAboutThisProduct.Add(model).Entity; _context.SaveChanges(); return(modelObj); }
public WhatYouNeedToKNowAboutThisProduct Edit(WhatYouNeedToKNowAboutThisProduct model) { _context.Entry(model).State = EntityState.Modified; _context.SaveChanges(); return(model); }