public async Task <DelregistrationModel> SaveDealerRegistration(DelregistrationModel delregistrationModel) { await this.context.delregistrationModels.AddAsync(delregistrationModel); this.context.SaveChanges(); return(delregistrationModel); }
public async Task <IActionResult> SaveDealerRegistration(DelregistrationModel delregistrationModel) { await this.repository.SaveDealerRegistration(delregistrationModel); return(Ok()); }