public ActionResult DeleteRoles(Guid Code)
 {
     try
     {
         string strMessage = "";
         bool   _success   = false;
         var    Roles      = dbUser.getRolesbyId(Code);
         int    maxValue   = dbUser.DeleteRoles(Roles);
         if (maxValue > 0)
         {
             strMessage = "Record successfully updated.";
             _success   = true;
         }
         else
         {
             strMessage = "Application server error.";
         }
         return(Json(new { success = _success, response = strMessage }));
     }
     catch (Exception ex)
     {
         Log.LogWrite(ex.Message, "Roles Delete", ex);
         return(Json(new { success = false, response = ex.Message.ToString() }));
     }
 }