public ServiceResult <object> AutocompleteViewParent(Clause clause) { var userInfo = _userSessionManager.GetUserInfo(clause.Ticket, Request); var bp = new BusinessParam(userInfo, clause); var checkAccess = _userSessionManager.CheckAccess(bp, ClassDetails[0].Clazz, "autocomplete"); return(checkAccess.Done ? ComboValFacade.GetInstance().AutocompleteViewParent(bp) : checkAccess); }
public ServiceResult <object> Save() { var dtoFromRequest = ComboValFacade.GetInstance().GetDtoFromRequest(HttpContext.Request); if (!dtoFromRequest.Done) { return(dtoFromRequest); } var dto = (ComboValDto)dtoFromRequest.Result; var userInfo = _userSessionManager.GetUserInfo(dto.Ticket, Request); var bp = new BusinessParam(userInfo); var checkAccess = _userSessionManager.CheckAccess(bp, ClassDetails[0].Clazz, dto.EntityId == 0 ? "insert" : "update"); return(checkAccess.Done ? ComboValFacade.GetInstance().Save(bp, dto) : checkAccess); }