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)); } }
public IActionResult DeleteScreen(int id) { _pcsService.DeleteScreen(id); return(Ok()); }