public ActionResult Edit(string username)
        {
            if (username == null || username.Equals(""))
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            DataObjects.User       usr = _userManager.RetrieveUserByUserName(username.ToString());
            SupplierWithAgreements supplierWithAgreements = _supplierManager.RetrieveSupplierWithAgreementsByUserId(usr.UserId);

            if (supplierWithAgreements == null)
            {
                return(HttpNotFound());
            }
            supplierWithAgreements.Agreements.RemoveAll(a => a.IsApproved == false);
            return(View(supplierWithAgreements));
        }