コード例 #1
0
        public HttpResponseMessage SaveRevenueProfileScale(EvolutionRepository.Models.RevenueScale revScale)
        {
            bool Result = OrganisationLogic.SaveRevenueProfileScale(revScale);

            if (Result == false)
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest); //EvolutionDataAccess.Organisation.OrganisationDAL.SaveRevenueProfile(revProfile);
            }
            else
            {
                return(new HttpResponseMessage(HttpStatusCode.OK));
            }
        }
コード例 #2
0
 public static bool SaveRevenueProfileScale(EvolutionRepository.Models.RevenueScale revScale)
 {
     revScale.DateAdded = DateTime.Now;
     return(EvolutionDataAccess.Organisation.OrganisationDAL.SaveRevenueProfileScale(revScale));
 }