Ejemplo n.º 1
0
        public async Task<IHttpActionResult> GetOwners()
        {
            var ownerService = new OwnerDataService();
            var processingResult = await ownerService.GetAllWhere(LoggedInUser.ClientID);
            if (!processingResult.IsSuccessful)
            {
                processingResult.Error = new ProcessingError("An error occurred while getting Owner.", "Could not Owner, please try again. If the problem persists contact support.", true);
                return Ok(processingResult);
            }

            processingResult.Data = processingResult.Data;

            return Ok(processingResult);
        }