Ejemplo n.º 1
0
 /// <summary>
 /// To Get Gou Allowance by ID
 /// </summary>
 /// <param name="GouAllowanceID"></param>
 /// <returns></returns>
 public GOUAllowanceBO GetGouAllowancebyID(int GouAllowanceID)
 {
     try
     {
         GOUAllowanceDAL GOUAllowanceDALobj = new GOUAllowanceDAL();
         return(GOUAllowanceDALobj.GetGOUAllowancebyID(GouAllowanceID));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// To Update
        /// </summary>
        /// <param name="GOUAllowanceBOobj"></param>
        /// <param name="reasonid"></param>
        /// <returns></returns>
        public string Update(GOUAllowanceBO GOUAllowanceBOobj, int reasonid)
        {
            GOUAllowanceDAL GOUAllowanceDALobj = new GOUAllowanceDAL();

            try
            {
                return(GOUAllowanceDALobj.Update(GOUAllowanceBOobj, reasonid));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                GOUAllowanceDALobj = null;
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// To Delete
        /// </summary>
        /// <param name="reasonid"></param>
        /// <returns></returns>
        public string Delete(int reasonid)
        {
            GOUAllowanceDAL GOUAllowanceDALobj = new GOUAllowanceDAL(); //Data pass -to Database Layer

            try
            {
                return(GOUAllowanceDALobj.Delete(reasonid));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                GOUAllowanceDALobj = null;
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// To Insert into Databse
        /// </summary>
        /// <param name="GOUAllowanceBOobj"></param>
        /// <returns></returns>
        public string Insert(GOUAllowanceBO GOUAllowanceBOobj)
        {
            GOUAllowanceDAL GOUAllowanceDALobj = new GOUAllowanceDAL(); //Data pass -to Database Layer

            try
            {
                return(GOUAllowanceDALobj.Insert(GOUAllowanceBOobj));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                GOUAllowanceDALobj = null;
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// To Get Gou Allowance
        /// </summary>
        /// <returns></returns>
        public GOUAllowanceList GetGouAllowance()
        {
            GOUAllowanceDAL GOUAllowanceDALobj = new GOUAllowanceDAL();

            return(GOUAllowanceDALobj.GetGOUAllowance());
        }