public F_BankOptionDTO Create(F_BankOptionDTO dto) { var user = base.F_Create <F_BankOptionDTO, F_BankOption>(dto , _IF_BankOptionRepository , dtoAction => { }); return(user); }
public ActionResult EditBankOption(F_BankOptionDTO bankOption) { if (bankOption.Id == Guid.Empty) { this._IF_BankOptionService.Create(bankOption); } else { this._IF_BankOptionService.Update(new List <F_BankOptionDTO> { bankOption }); } return(RedirectToAction("index")); }