Esempio n. 1
0
        //UPDATE Role
        public static bool UpdateRole(RoleViewModel paramEditEmp)
        {
            bool result = true;

            try
            {
                using (MarkomApplicationDBEntities db = new MarkomApplicationDBEntities())
                {
                    db.spRoleUpdate(
                        paramEditEmp.id
                        , paramEditEmp.name
                        , paramEditEmp.description
                        , paramEditEmp.updateBy
                        , paramEditEmp.updateDate
                        );
                }
            }
            catch (Exception ex)
            {
                Message = ex.Message;
                result  = false;
                //throw;
            }
            return(result);
        }