public ActionResult Delete(
            [FromServicesAttribute] IErrorRepository _errorrepository,
            [FromRoute] int id)
        {
            var logerrobyid = _errorrepository.Delete(id);

            if (logerrobyid.Success == false)
            {
                return(BadRequest(logerrobyid));
            }


            return(Ok(logerrobyid));
        }
Beispiel #2
0
 public void Delete(int id)
 {
     _repo.Delete(id);
 }
Beispiel #3
0
 public Error Delete(int id)
 {
     return(_errorRepository.Delete(id));
 }