Esempio n. 1
0
        public IHttpActionResult Update(List <COMPANIES_RMAGDC> objCompanies_Rmags)
        {
            COMPANIES_RMAGBL objCompanies_Rmag = new COMPANIES_RMAGBL();

            try
            {
                int IsUpdated = objCompanies_Rmag.Update(objCompanies_Rmags);
                return(Ok());
            }
            catch (Exception ex)
            {
                return(new TextResult(ex.Message, Request));
            }
        }
Esempio n. 2
0
        public IHttpActionResult  Get(int id)
        {
            COMPANIES_RMAGBL objCompanies_Rmags = new COMPANIES_RMAGBL();
            COMPANIES_RMAGDC objResult          = new COMPANIES_RMAGDC();

            try{
                objResult = objCompanies_Rmags.LoadByPrimaryKey(id);
                return(Ok(new { objResult }));
            }
            catch (Exception ex)
            {
                return(new TextResult(ex.Message, Request));
            }
        }
Esempio n. 3
0
        public IHttpActionResult GetCompaniesByRmagsAndInvitedCompanies(String Rmags, String EventId)
        {
            COMPANIES_RMAGBL  objCOMPANIES_RMAG = new COMPANIES_RMAGBL();
            List <COMPANIEDC> objResultList     = new List <COMPANIEDC>();

            try
            {
                objResultList = objCOMPANIES_RMAG.GetCompaniesByRmagsAndInvitedCompanies(Rmags, Convert.ToInt16(EventId));
                return(Ok(new { objResultList }));
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }
Esempio n. 4
0
        public IHttpActionResult GetAll()
        {
            COMPANIES_RMAGBL        objCompaniesRmags = new COMPANIES_RMAGBL();
            List <COMPANIES_RMAGDC> objResultList     = new List <COMPANIES_RMAGDC>();

            try
            {
                objResultList = objCompaniesRmags.LoadAll();
                return(Ok(new { objResultList }));
            }
            catch (Exception ex)
            {
                return(new TextResult(ex.Message, Request));
            }
        }
Esempio n. 5
0
        public IHttpActionResult GetCompaniesByRmags(String Rmags)
        {
            COMPANIES_RMAGBL  objCOMPANIES_RMAG = new COMPANIES_RMAGBL();
            List <COMPANIEDC> objResultList     = new List <COMPANIEDC>();

            try
            {
                objResultList = objCOMPANIES_RMAG.GetCompaniesByRmags(Rmags);
                return(Ok(new { objResultList }));
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }