//organisation deductions public HttpResponseMessage PostSaveRevenueProfile(EvolutionRepository.Models.RevenueProfile revProfile) { bool Result = OrganisationLogic.SaveRevenueProfile(revProfile); if (Result == false) { throw new HttpResponseException(HttpStatusCode.BadRequest); //EvolutionDataAccess.Organisation.OrganisationDAL.SaveRevenueProfile(revProfile); } else { return(new HttpResponseMessage(HttpStatusCode.OK)); } }
//organisation deductions public static bool SaveRevenueProfile(EvolutionRepository.Models.RevenueProfile revProfile) { bool Result = false; try { revProfile.DateAdded = DateTime.Now; EvolutionDataAccess.Organisation.OrganisationDAL.SaveRevenueProfile(revProfile); Result = true; } catch (Exception ex) { //throw ex; throw new EvolutionBusinessLogic.Exceptions.EvolutionException("Database error", "Evolution could not process the required stored procedure succesully. " + ex.Message); } return(Result); }