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));
        }
Beispiel #2
0
 public Task <bool> AssignAsset(CustomerAssetDTO customerAssetDTO)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
        public async Task <bool> AssignAsset(CustomerAssetDTO customerAssetDTO)
        {
            CustomerAsset customerAsset = _mapper.Map <CustomerAsset>(customerAssetDTO);

            return(await _customerBLL.AssignAsset(customerAsset));
        }