public ActionResult Delete([FromBody] DeleteSmartphoneRequest request) { var response = _smartphoneService.Delete(request); if (response.IsSuccess) { return(Ok()); } return(NotFound()); }
public IResponse <DeleteSmartphoneResponse, int> Delete(DeleteSmartphoneRequest request) => new DeleteSmartphoneResponse { IsSuccess = _smartphoneRepository.Delete(request.Id).IsSuccess };