public static SuperHeroGlobal ToGlobal(this SuperHeroClient SH) { return(new SuperHeroGlobal() { Id = SH.Id, Name = SH.Name, Strenght = SH.Strenght, Stamina = SH.Stamina, Intelligence = SH.Intelligence, Charism = SH.Charism }); }
public static UpdateForm ToUpdateForm(this SuperHeroClient entity) { return(new UpdateForm() { Id = entity.Id, Name = entity.Name, Charism = entity.Charism, Intelligence = entity.Intelligence, Strenght = entity.Strenght, Stamina = entity.Stamina, }); }
public ActionResult Delete(SuperHeroClient entity) { try { _service.Delete(entity.Id); return(RedirectToAction("Index")); } catch { return(View()); } }