Ejemplo n.º 1
0
        public object Put(SaveApplication request)
        {
            var success = _applicationManager.Update(request.Application);

            var issues = _messageBusService.Fetch().Select(m => m.Details); ;

            return new ServiceResult<Application>
            {
                Success = success,
                Result = request.Application,
                Errors = issues
            };
        }
Ejemplo n.º 2
0
        public object Post(SaveApplication request)
        {
            int id;
            var success = _applicationManager.Create(request.Application, out id);

            if (success)
                request.Application.ID = id;

            var issues = _messageBusService.Fetch().Select(m => m.Details); ;

            return new ServiceResult<Application>
            {
                Success = success,
                Result = request.Application,
                Errors = issues
            };
        }