public HttpResponseMessage DeleteRevenueProfileScale(EvolutionRepository.ManualModels.RevenueProfileScaleKeys revKeys)
        {
            bool Result = OrganisationLogic.DeleteRevenueProfileScale(revKeys);

            if (Result == false)
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest); //EvolutionDataAccess.Organisation.OrganisationDAL.SaveRevenueProfile(revProfile);
            }
            else
            {
                return(new HttpResponseMessage(HttpStatusCode.OK));
            }
        }
        public HttpResponseMessage DeleteOrgRevenueProfile(int id)
        {
            bool Result = OrganisationLogic.DeleteOrganisationRevenueProfile(id);

            if (Result == false)
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest); //EvolutionDataAccess.Organisation.OrganisationDAL.SaveRevenueProfile(revProfile);
            }
            else
            {
                return(new HttpResponseMessage(HttpStatusCode.OK));
            }
        }
        public HttpResponseMessage PostOrgBankDetails([FromBody] BankAccount bankDetails)
        {
            bool Result = OrganisationLogic.SaveOrganisationBankDetails(bankDetails);

            if (Result == false)
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest);
            }
            else
            {
                return(new HttpResponseMessage(HttpStatusCode.OK));
            }
        }
        // POST api/Organisation
        public HttpResponseMessage PostOrganisation([FromBody] Organisation Organisation)
        {
            //OrganisationMethods Org = new OrganisationMethods();
            //bool Result = Org.CreateOrganisation(Organisation);
            bool Result = OrganisationLogic.CreateOrganisation(Organisation);

            if (Result == false)
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest);
            }
            else
            {
                return(new HttpResponseMessage(HttpStatusCode.OK));
            }
        }
        // DELETE api/Organisation/5
        public HttpResponseMessage DeleteOrganisation(int id)
        {
            //OrganisationMethods Org = new OrganisationMethods();
            //bool Result = Org.DeleteOrganisation(id);
            bool Result = OrganisationLogic.DeleteOrganisation(id);

            if (Result == false)
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest);
            }
            else
            {
                return(new HttpResponseMessage(HttpStatusCode.OK));
            }
        }
 // GET api/Organisation
 public GetOrganistionListResult GetOrganisations([FromUri] int skip, int take)//OrganisationBusinessLogic.GetOrganistionListResult GetOrganisations([FromUri]int skip, int take)
 {
     return(OrganisationLogic.GetOrganisations(skip, take));
 }
 public Organisation GetOrganisation(int OrgID)
 {
     return(OrganisationLogic.GetOrganisation(OrgID));
 }
 //revenue profile scales
 public EvolutionRepository.ManualModels.GetRevenueProfileScaleResult GetRevenueProfileScales(int revenueProfileID, int skip, int take)
 {
     return(OrganisationLogic.GetRevenueProfileScales(revenueProfileID));
 }
 public List <EvolutionRepository.Models.DeductionTotalType> PostGetDeductionTotalType()
 {
     return(OrganisationLogic.GetDeductionTotalType());
 }
 public List <EvolutionRepository.Models.RevenueProfileType> PostGetRevenueProfileType()
 {
     return(OrganisationLogic.GetRevenueProfileType());
 }
        public EvolutionRepository.ManualModels.GetRevenueProfileResult GetOrgRevenueProfile(int OrganisationID, int skip, int take)
        {
            var Result = OrganisationLogic.GetOrgRevenueProfile(OrganisationID, skip, take);

            return(Result);
        }