Ejemplo n.º 1
0
        public static ClsReturnValues setCargoType(ClsCargoType obj, Guid SessionID)
        {
            ClsReturnValues lst = new ClsReturnValues();

            using (var db = new tdoEntities())
            {
                lst = db.uspAddEditCargoType(obj.cargoTypeID, obj.cargoTypeName, obj.createdByID, SessionID).FirstOrDefault();
            }
            return(lst);
        }
Ejemplo n.º 2
0
 public static ClsReturnValues setCargoType(ClsCargoType item)
 {
     ClsReturnValues obj = new ClsReturnValues();
     try
     {
         using (var db = new tdoEntities())
         {
             obj = db.uspAddEditCargoType(item.cargoTypeID, item.cargoTypeName,item.createdByID,item.sessionID).FirstOrDefault();
         }
     }
     catch (Exception ex) { obj.Response = ex.Message; obj.IsSuccess = false; obj.ID = 0; }
     return obj;
 }
Ejemplo n.º 3
0
        public static ClsReturnValues setCargoType(ClsCargoType item)
        {
            ClsReturnValues obj = new ClsReturnValues();

            try
            {
                using (var db = new tdoEntities())
                {
                    obj = db.uspAddEditCargoType(item.cargoTypeID, item.cargoTypeName, item.createdByID, item.sessionID).FirstOrDefault();
                }
            }
            catch (Exception ex) { obj.Response = ex.Message; obj.IsSuccess = false; obj.ID = 0; }
            return(obj);
        }
Ejemplo n.º 4
0
        public static ClsReturnValues setCargoType(ClsCargoType obj, Guid SessionID)
        {
            ClsReturnValues lst = new ClsReturnValues();

            using (var db = new tdoEntities())
            {

                lst = db.uspAddEditCargoType(obj.cargoTypeID, obj.cargoTypeName, obj.createdByID, SessionID).FirstOrDefault();
            }
            return lst;
        }