Ejemplo n.º 1
0
        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();
 }
Ejemplo n.º 3
0
 public void Add(License entity)
 {
     context.License.Add(entity);
     context.SaveChanges();
 }