예제 #1
0
        public async Task <ActionResult> DeleteScreen([FromBody] ScreenDeleteRequest screenDeleteRequest)
        {
            try
            {
                _response = await _screenService.DeleteScreen(screenDeleteRequest);

                return(new OkObjectResult(_response));
            }
            catch (Exception ex)
            {
                _response.Message = ex.Message;
                _response.Status  = false;
                return(BadRequest(_response));
            }
        }
예제 #2
0
 public IActionResult DeleteScreen(int id)
 {
     _pcsService.DeleteScreen(id);
     return(Ok());
 }