public IActionResult Delete(Cabinet cabinet) { var result = _cabinetService.Delete(cabinet); if (result.Success) { return(Ok(result.Message)); } return(BadRequest(result.Message)); }
public bool Delete(Guid cabinetId) { return(cabinetService.Delete(cabinetId)); }