public IActionResult Putrenew(int id, [FromBody] License value) { License license = context.License.Where(e => e.Organization.Id == id).FirstOrDefault(); if (license == null) { return(NotFound()); } license.LisenseEnd = value.LisenseEnd; context.SaveChanges(); return(NoContent()); }
public void Add(User entity) { context.User.Add(entity); context.SaveChanges(); }
public void Add(License entity) { context.License.Add(entity); context.SaveChanges(); }