public IActionResult Delete(int id) { var company = _context.company.Where(c => c.companyId == id).FirstOrDefault <company>(); if (company != null) { _context.Remove(company); _context.SaveChanges(); return(Ok()); } else { return(NotFound()); } }
public IActionResult Delete(int id) { var currency = _context.currency.Where(c => c.currencyId == id).FirstOrDefault<currency>(); if (currency != null) { _context.Remove(currency); _context.SaveChanges(); return Ok(); } else { return NotFound(); } }
public IActionResult Delete(int id) { var phase = _context.phase.Where(c => c.phaseId == id).FirstOrDefault <phase>(); if (phase != null) { _context.Remove(phase); _context.SaveChanges(); return(Ok()); } else { return(NotFound()); } }
public IActionResult Delete(int id) { var user = _context.user.Where(c => c.userId == id).FirstOrDefault <user>(); if (user != null) { _context.Remove(user); _context.SaveChanges(); return(Ok()); } else { return(NotFound()); } }
public IActionResult Delete(int id) { var role = _context.role.Where(c => c.roleId == id).FirstOrDefault <role>(); if (role != null) { _context.Remove(role); _context.SaveChanges(); return(Ok()); } else { return(NotFound()); } }
public IActionResult Delete(int id) { var traveltype = _context.traveltype.Where(c => c.traveltypeId == id).FirstOrDefault <traveltype>(); if (traveltype != null) { _context.Remove(traveltype); _context.SaveChanges(); return(Ok()); } else { return(NotFound()); } }