public IActionResult Delete(Guid id) { try { if (id == null) { return(StatusCode(400, $"ID is not valid.")); } else { var res = _staff.Delete(id); return(Json(res)); } } catch (Exception ex) { _logger.LogCritical($"Exception while get list of items.", ex); return(StatusCode(500, $"Exception while get list of items. {ex.Message}")); } }
public int Delete(Guid userId) { return(dal.Delete(userId)); }