Beispiel #1
0
        public HttpResponseMessage GetSaveBankBranchName(string param, int catId)
        {
            string msg       = "";
            var    formatter = RequestFormat.JsonFormaterString();

            if (_gtDropDownGateway.FncSeekRecordNew("tbl_BRANCH_OF_BANK_HR", "Name='" + param + "' AND BankId = '" + catId + "'"))
            {
                msg = "This Name Already Exist";
                return(Request.CreateResponse(HttpStatusCode.OK, msg, formatter));
            }
            msg = _gtEmployeeGetway.SaveNameOnly("INSERT INTO tbl_BRANCH_OF_BANK_HR (Name,BankId) OUTPUT INSERTED.ID VALUES ('" + param + "'," + catId + ")").ToString();

            return(Request.CreateResponse(HttpStatusCode.OK, msg, formatter));
        }