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)); }
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))); }
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)); } }