public async Task <int> UpdateAsync(IUceniciDomainModel updated) { try { return(await Reporsitory.UpdateAsync(Mapper.Map <Ucenici>(updated))); } catch (Exception e) { throw e; } }
public async Task <int> UpdateAsync(IUceniciDomainModel updated) { return(await predmetiGenericReporsitory.UpdateAsync(updated)); }
public async Task <int> AddAsync(IUceniciDomainModel addObj) { addObj.UcenikId = Guid.NewGuid(); return(await predmetiGenericReporsitory.AddAsync(addObj)); }
public async Task <int> Add(IUceniciDomainModel addObj) { return(await PredmetiGenericReporsitory.AddAsync(addObj)); }
public async Task <int> UpdateAsync(IUceniciDomainModel updated) { return(await unitOfWork.UceniciRepository.UpdateAsync(Mapper.Map <Ucenik>(updated))); }
public async Task <int> AddAsync(IUceniciDomainModel addObj) { return(await unitOfWork.UceniciRepository.AddAsync(Mapper.Map <Ucenik>(addObj))); }
public async Task <int> AddAsync(IUceniciDomainModel addObj) { return(await Reporsitory.AddAsync(Mapper.Map <Ucenici>(addObj))); }