/// <summary> /// Gets the drop down list asynchronous. /// </summary> /// <param name="model">The search.</param> /// <returns> /// list of dropdown /// </returns> public async Task <int?> UpdateVendorInfoAsync(VendorInformationModel model) { try { return(await this.vendorInformationRepo.UpdateAsync(model)); } catch (Exception ex) { string msg = ex.ToString(); return(null); } }
/// <summary> /// Gets the drop down list asynchronous. /// </summary> /// <param name="model">The search.</param> /// <returns> /// list of dropdown /// </returns> public async Task <int> AddVendorInfoAsync(VendorInformationModel model) { try { await this.vendorInformationRepo.InsertAsync(model); return(model.Id); } catch (Exception ex) { string msg = ex.ToString(); return(0); } }