public async Task <IActionResult> AssignAsset(CustomerAssetDTO customerAssetDTO) { bool status = false; try { if (customerAssetDTO != null) { customerAssetDTO.UpdatedDate = DateTime.Now; status = await _customerFacade.AssignAsset(customerAssetDTO); } } catch (Exception ex) { throw ex; } return(base.Ok(status)); }
public Task <bool> AssignAsset(CustomerAssetDTO customerAssetDTO) { throw new NotImplementedException(); }
public async Task <bool> AssignAsset(CustomerAssetDTO customerAssetDTO) { CustomerAsset customerAsset = _mapper.Map <CustomerAsset>(customerAssetDTO); return(await _customerBLL.AssignAsset(customerAsset)); }