/// <summary> /// Updates the society (udruga) async. /// </summary> /// <param name="udruga"></param> /// <returns></returns> public virtual Task<int> UpdateAsync(IUdruga udruga) { try { return Repository.UpdateAsync<EvidencijaClanova.DAL.Udruga>(Mapper.Map<EvidencijaClanova.DAL.Udruga>(udruga)); } catch (Exception e) { throw e; } }
/// <summary> /// Creates a society (udruga) of the type IUdruga async. /// </summary> /// <param name="udruga"></param> /// <returns></returns> public virtual Task<int> AddAsync(IUdruga udruga) { try { return Repository.AddAsync(udruga); } catch (Exception e) { throw e; } }
/// <summary> /// Creates a society (udruga) of the type IUdruga async. /// </summary> /// <param name="udruga"></param> /// <returns></returns> public virtual Task<int> AddAsync(IUdruga udruga) { try { return Repository.AddAsync<DAL.Udruga>(Mapper.Map<DAL.Udruga>(udruga)); } catch (Exception e) { throw e; } }