コード例 #1
0
        public HttpResponseMessage Update([FromBody] OrganisationComm orgCom)
        {
            bool Result = OrganisationCommLogic.EditOrganisationComm(orgCom);

            if (Result == false)
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest);
            }
            else
            {
                return(new HttpResponseMessage(HttpStatusCode.OK));
            }
        }
コード例 #2
0
        public HttpResponseMessage Delete([FromUri] int id)
        {
            var test = id;

            bool Result = OrganisationCommLogic.DeleteOrganisationComm(id);

            if (Result == false)
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest);
            }
            else
            {
                return(new HttpResponseMessage(HttpStatusCode.OK));
            }
        }
コード例 #3
0
 public EvolutionRepository.Models.OrganisationComm Get(int id)
 {
     return(OrganisationCommLogic.GetOrganisationCommByID(id));
 }
コード例 #4
0
 public EvolutionRepository.ManualModels.GetOrganisationCommListResult Get([FromUri] int organisationID, int skip, int take)
 {
     return(OrganisationCommLogic.GetAllOrganisationCommsByID(organisationID, skip, take));
 }