public IHttpActionResult MMCS_SaveCompanyBasicDetails([FromBody] MMCS_CompanyDetailSave MMCS_SaveCompanyDetails)
        {
            int status;

            try
            {
                status = iCompanyBL.MMCS_SaveCompanyDetails(MMCS_SaveCompanyDetails);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(Ok(status));
        }
Exemple #2
0
        public int MMCS_SaveCompanyDetails(MMCS_CompanyDetailSave MMCS_CompanySaveDetail)
        {
            int status = 0;

            try
            {
                status = icompanyDL.MMCS_SaveCompanyDetails(MMCS_CompanySaveDetail);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(status);
        }
Exemple #3
0
        public int MMCS_SaveCompanyDetails(MMCS_CompanyDetailSave MMCS_CompanySaveDetail)
        {
            var statusParameter = new SqlParameter();

            statusParameter.ParameterName = "@Status";
            statusParameter.Direction     = ParameterDirection.Output;
            statusParameter.SqlDbType     = SqlDbType.Int;

            try
            {
                using (aircheck_cloneEntities db = new aircheck_cloneEntities())
                {
                    db.Database.ExecuteSqlCommand("[dbo].[MMCS_CompanyDetailsSave] @Company_id,@companyName,@arid,@mediaOwnerID,@marketID,@phone,@fax,@address,@city,@state,@zipcode,@country,@contractDesc,@contractStart,@contractEnd,@dataStart,@dataEnd,@paymentType,@themeID,@isAllFullAudioOverride,@salesRepID,@autoRenewal,@IsInternal,@address0,@address1,@clientID,@productID,@marketIDStr,@formatIDStr,@mediasetIDStr,@basepackageID,@sync,@companyID,@classID,@featureID,@featureIDStr,@Status OUT",
                                                  new SqlParameter("@Company_id", MMCS_CompanySaveDetail.Company_id),
                                                  new SqlParameter("@companyName", MMCS_CompanySaveDetail.companyName),
                                                  new SqlParameter("@arid", MMCS_CompanySaveDetail.arid),
                                                  new SqlParameter("@mediaOwnerID", MMCS_CompanySaveDetail.mediaOwnerID),
                                                  new SqlParameter("@marketID", MMCS_CompanySaveDetail.marketID),
                                                  new SqlParameter("@phone", MMCS_CompanySaveDetail.phone),
                                                  new SqlParameter("@fax", MMCS_CompanySaveDetail.fax),
                                                  new SqlParameter("@address", MMCS_CompanySaveDetail.address),
                                                  new SqlParameter("@city", MMCS_CompanySaveDetail.city),
                                                  new SqlParameter("@state", MMCS_CompanySaveDetail.state),
                                                  new SqlParameter("@zipcode", MMCS_CompanySaveDetail.zipcode),
                                                  new SqlParameter("@country", MMCS_CompanySaveDetail.country),
                                                  new SqlParameter("@contractDesc", MMCS_CompanySaveDetail.contractDesc),
                                                  new SqlParameter("@contractStart", MMCS_CompanySaveDetail.contractStart),
                                                  new SqlParameter("@contractEnd", MMCS_CompanySaveDetail.contractEnd),
                                                  new SqlParameter("@dataStart", MMCS_CompanySaveDetail.dataStart),
                                                  new SqlParameter("@dataEnd", MMCS_CompanySaveDetail.dataEnd),
                                                  new SqlParameter("@paymentType", MMCS_CompanySaveDetail.paymentType),
                                                  new SqlParameter("@themeID", MMCS_CompanySaveDetail.themeID),
                                                  new SqlParameter("@isAllFullAudioOverride", MMCS_CompanySaveDetail.isAllFullAudioOverride),
                                                  new SqlParameter("@salesRepID", MMCS_CompanySaveDetail.salesRepID),
                                                  new SqlParameter("@autoRenewal", MMCS_CompanySaveDetail.autoRenewal),
                                                  new SqlParameter("@IsInternal", MMCS_CompanySaveDetail.isInternal),
                                                  statusParameter);
                }
            }
            catch (Exception ex)
            {
                statusParameter.Value = -1;
                throw ex;
            }
            return(Convert.ToInt32(statusParameter.Value));
        }