Beispiel #1
0
        public ActionResult AddChildFunction(Tb_Function info)
        {
            try
            {
                var result = new BaseResult();

                var id_user = GetLoginInfo <string>("id_user");
                info.id        = Guid.NewGuid().ToString();//(int)BusinessFactory.Utilety.GetNextKey(typeof(Tb_Function));
                info.id_create = id_user;
                info.id_edit   = id_user;
                info.rq_create = DateTime.Now;
                info.rq_edit   = DateTime.Now;

                result = BusinessFactory.Function.Add(info);

                return(Json(result));
            }
            catch (CySoftException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #2
0
        public ActionResult EditFunction(Tb_Function info)
        {
            try
            {
                var result = new BaseResult();

                result = BusinessFactory.Function.Update(info);

                return(Json(result));
            }
            catch (CySoftException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }