Esempio n. 1
0
        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));
        }