Пример #1
0
        public static object Post(RecruitmentAgenciesVM vm)
        {
            if (vm.RecruitmentAgencieID > 0)
            {
                if (Utils.CheckPermission(3, 29, Utils.LoggedUser.Roles) < 1)
                {
                    return(Utils.ServiceResponse("", new ModelResponse(101), null));
                }
            }
            else
            {
                if (Utils.CheckPermission(2, 29, Utils.LoggedUser.Roles) < 1)
                {
                    return(Utils.ServiceResponse("", new ModelResponse(101), null));
                }
            }


            var mr = Mgr.Post(Utils.LoggedUser, vm);

            return(Utils.ServiceResponse(mr, null));
        }