public ActionResult DeleteDeveloper(Guid developerId)
        {
            var developerModelFromRepo = _repository.GetDeveloperById(developerId);

            if (developerModelFromRepo == null)
            {
                return(NotFound());
            }
            _repository.DeleteDeveloper(developerModelFromRepo);

            _repository.SaveChanges();

            return(NoContent());
        }
Beispiel #2
0
 public void DeleteDeveloper(int id)
 {
     _developerRepository.DeleteDeveloper(id);
 }
 public IActionResult DeleteDeveloper(int id=0,int type=0)
 {
    var  result = developerRepository.DeleteDeveloper(id, type);
     return Json(result);
 }
 public IActionResult DeleteDeveloper(string Id)
 {
     developerRepository.DeleteDeveloper(Id);
     return(RedirectToAction("ShowDevelopers"));
 }