public void SendDeadReport(int UserId, User FatherInfo)
 {
     var mailer = new DefaultMailer();
     var w = new OwnersByWitnessQuery(UserId, FatherInfo.Id).ExecuteNew2();
     for (int i = 0; i < w.Count; i++)
     {
         var msg = mailer.SendWitnessDeadReport(FatherInfo.FullName(), w[i].FirstName + " " + w[i].LastName, w[i].Email);
         msg.Send();
     }
 }
 //[HttpPost]
 //public ActionResult Index(int value)
 //{
 //    var getOwner = new WitnessesAddHandler().FindIdOwner(value);
 //    var userFather = new WitnessesAddHandler().FindFatherInfo(getOwner.UserIdFather.Value);
 //    var sent = new WitnessesAddHandler();
 //    sent.SendDeadReport(Current.UserId, userFather);
 //    return RedirectToAction("Message", "Witness");
 //}
 public ActionResult Message()
 {
     var owners = new OwnersByWitnessQuery(Current.UserId).Execute1();
     return View(owners);
 }
 public ActionResult EditWitness()
 {
     var user = AuthenticationService.GetUser();
     var witness = new OwnersByWitnessQuery(user.Id).ExecuteNew();
     return View(witness);
 }
 public ActionResult Index()
 {
     var owners = new OwnersByWitnessQuery(Current.UserId).Execute();
     Session["username"] = owners.MyAccountWidget2.UserName;
     return View(owners);
 }