コード例 #1
0
        public IActionResult Delete(Cabinet cabinet)
        {
            var result = _cabinetService.Delete(cabinet);

            if (result.Success)
            {
                return(Ok(result.Message));
            }

            return(BadRequest(result.Message));
        }
コード例 #2
0
 public bool Delete(Guid cabinetId)
 {
     return(cabinetService.Delete(cabinetId));
 }