public Boolean Insert(LeaveENT entLeave, SqlInt32 UserID)
        {
            LeaveDAL dalLeave = new LeaveDAL();

            if (dalLeave.Insert(entLeave, UserID))
            {
                return(true);
            }
            else
            {
                Message = dalLeave.Message;
                return(false);
            }
        }
Example #2
0
    public int Insert(Leave leave)
    {
        LeaveDAL ADAL = new LeaveDAL();

        try
        {
            return(ADAL.Insert(leave));
        }
        catch (Exception)
        {
            throw;
        }
        finally
        {
            leave = null;
        }
    }