public object AddOutStamps([FromUri] TAttendenceModal.AddOutStampsReq req)
        {
            BLL_Attendence bllAttendence = new BLL_Attendence();

            TAttendenceModal.AddOutStampsRsp resp = bllAttendence.AddOutStamps(req);
            return(resp);
        }
        internal TAttendenceModal.AddOutStampsRsp AddOutStamps(TAttendenceModal.AddOutStampsReq req)
        {
            TAttendenceModal.AddOutStampsRsp rsp = new TAttendenceModal.AddOutStampsRsp();
            rsp.apiError = new APIErrors();
            rsp.apiError = ApiError_defs.err_Invalid_Request;
            List <ITAttendence> ia = _storage.GetAttendenceById(req.nEntityId, req.day, req.month, req.year);

            if (ia != null && ia.Count > 0)
            {
                foreach (ITAttendence attendence in ia)
                {
                    if (attendence.rOutLat <= 0)
                    {
                        ITAttendence att = _storage.AddOutStamps(attendence, req.rOutLat, req.rOutLong);
                        rsp.apiError = ApiError_defs.ok;
                    }
                }
            }
            return(rsp);
        }