public IActionResult AddSubType(ObjFinanceSubType obj) { if (obj.Id == -1) { obj.Id = 0; _financeService.Add(obj); } else { _financeService.Edit(obj); } return(RedirectToAction("FSubTypes")); }