예제 #1
0
        public object Get(FB_Staff request)
        {
            ApiUser         hdUser         = request.ApiUser;
            Instance_Config instanceConfig = new Models.Instance_Config(hdUser);

            return(FBStaffs.GetFBStaff(instanceConfig, request.page, request.limit));
        }
예제 #2
0
        public object Get(FB_Staff request)
        {
            ApiUser         hdUser         = request.ApiUser;
            Instance_Config instanceConfig = new Instance_Config(hdUser);

            return(request.FilteredResult <bigWebApps.bigWebDesk.Data.FBStaff>(FBStaffs.GetFBStaff(instanceConfig, request.page, request.limit)));
        }
예제 #3
0
        public object Delete(FB_Staff_Delete request)
        {
            ApiUser         hdUser         = request.ApiUser;
            Instance_Config instanceConfig = new Instance_Config(hdUser);

            try
            {
                FBStaffs.UnlinkFreshBooksStaff(hdUser, request.key);
                return(new HttpResult("", HttpStatusCode.OK));
            }
            catch (Exception ex)
            {
                throw new HttpError(Utils.ClearString(ex.Message));
            }
        }