Beispiel #1
0
        public string SaveWing(Common_Wing objWing)
        {
            string rv = "";

            try
            {
                Insert_Update_Wing("sp_Insert_Wing", "saveWinginfo", objWing);
                rv = Operation.Success.ToString();
            }
            catch (Exception ex)
            {
                rv = ex.Message;
            }
            return(rv);
        }
Beispiel #2
0
 public DataTable Insert_Update_Wing(string procedure, string callname, Common_Wing objWing)
 {
     dbConn = new SqlConnection(ConnectionString);
     dbConn.Open();
     cmd             = new SqlCommand(procedure, dbConn);
     cmd.CommandType = CommandType.StoredProcedure;
     cmd.Parameters.Add(new SqlParameter("@call_name", callname));
     cmd.Parameters.Add(new SqlParameter("@p_WingId", objWing.WingID));
     cmd.Parameters.Add(new SqlParameter("@p_WingName", objWing.WingName));
     cmd.Parameters.Add(new SqlParameter("@p_WingNameBan", objWing.WingNameBan));
     cmd.Parameters.Add(new SqlParameter("@p_IsActive", objWing.IsActive));
     da = new SqlDataAdapter(cmd);
     dt = new DataTable();
     da.Fill(dt);
     dbConn.Close();
     return(dt);
 }
Beispiel #3
0
 public string SaveWing(Common_Wing objWing)
 {
     return(_dataService.SaveWing(objWing));
 }
Beispiel #4
0
        public ActionResult SaveWing(Common_Wing objWing)
        {
            var res = _wingRepository.SaveWing(objWing);

            return(Json(res, JsonRequestBehavior.AllowGet));
        }