// GET: Users/Delete/5
 public ActionResult Delete(int id)
 {
     try
     {
         using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL())
         {
             ctx.UserFindByID(id);
         }
         return(View());
     }
     catch (Exception ex)
     {
         Logger.Logger.Log(ex);
         return(View("Error"));
     }
 }
 // GET: Users/Details/5
 public ActionResult Details(int id)
 {
     try
     {
         UserBLL it = null;
         using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL())
         {
             it = ctx.UserFindByID(id);
             return(View(it));
         }
     }
     catch (Exception ex)
     {
         Logger.Logger.Log(ex);
         return(View("Error"));
     }
 }
        // GET: Users/Edit/5
        public ActionResult Edit(int id)
        {
            UserBLL user;

            try
            {
                using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL())
                {
                    user = ctx.UserFindByID(id);
                    if (null == user)
                    {
                        return(View("Error"));
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.Logger.Log(ex);
                return(View("Error"));
            }
            ViewBag.Roles = GetRoleItems();
            return(View(user));
        }