public bool Delete(UserProfile entity)
 {
     try
     {
         _repo.Delete(entity);
         _repo.Save();
         return true;
     }
     catch (Exception ex)
     {
         ValidationDic.Clear();
         ValidationDic.Add("Exception", ex.Message);
         return false;
     }
 }
 public bool Create(UserProfile entity)
 {
     throw new NotImplementedException("Use web security to create a user");
 }
 public bool Update(UserProfile entity)
 {
     try
     {
         // TODO: validate before update
         _repo.Update(entity);
         _repo.Save();
         return true;
     }
     catch (Exception ex)
     {
         ValidationDic.Clear();
         ValidationDic.Add("Exception", ex.Message);
         return false;
     }
 }