/// <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; } }
/// <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; } }
/// <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; } }
/// <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; } }
/// <summary> /// To Get Gou Allowance /// </summary> /// <returns></returns> public GOUAllowanceList GetGouAllowance() { GOUAllowanceDAL GOUAllowanceDALobj = new GOUAllowanceDAL(); return(GOUAllowanceDALobj.GetGOUAllowance()); }