public ActionResult AddPunchTimerequest()
        {
            Employee_PunchTimeRequestModel Model = new Employee_PunchTimeRequestModel();

            Model.AttendanceDate = DateTime.Now;
            return(PartialView("~/Views/NewAdmin/ePeople/_PunchTimeRequest.cshtml", Model));
        }
        public ActionResult AddPunchTimerequest(Employee_PunchTimeRequestModel Model)
        {
            long            LocationId    = 0;
            eTracLoginModel ObjLoginModel = null;

            if (Session["eTrac"] != null)
            {
                ObjLoginModel = (eTracLoginModel)(Session["eTrac"]);
                if (LocationId == 0)
                {
                    LocationId = ObjLoginModel.LocationID;
                }
                Model.UserId    = ObjLoginModel.UserId;
                Model.CreatedBy = ObjLoginModel.UserId;
            }

            string               SQRY = "EXEC SP_PunchTimeRequest N'" + Model.UserId + "','" + LocationId + "','" + Model.AttendanceDate.ToString("dd MMM yyyy") + "','" + Model.InTimeString + "','" + Model.OutTimeString + "', N'" + Model.Remarks + "'";
            DataTable            DT   = DBUtilities.GetDTResponse(SQRY);
            List <UserModelList> Emp  = new List <UserModelList>();

            return(PartialView("~/Views/NewAdmin/ePeople/_PunchTimeRequest.cshtml", Model));
            //return RedirectToAction("AttandanceManager", "eTime");
        }