public async Task <long> UpdateLeadDisciplineAsync(LeadDisciplineDto leadDisciplineDto) { var leadDiscipline = new LeadDiscipline(); Mapper.Map(leadDisciplineDto, leadDiscipline); var rowsUpdated = await leadDisciplineRepository.UpdateLeadDisciplineAsync(leadDiscipline, leadDisciplineDto.MappingScheme); return(rowsUpdated); }
public async Task <IHttpActionResult> UpdateLeadDiscipline(LeadDisciplineDto leadDisciplineDto) { await leadDisciplineManager.UpdateLeadDisciplineAsync(leadDisciplineDto); return(Ok()); }
public async Task <IHttpActionResult> CreateLeadDiscipline(LeadDisciplineDto leadDisciplineDto) { var leadDisciplineId = await leadDisciplineManager.CreateLeadDisciplineAsync(leadDisciplineDto); return(Ok(leadDisciplineId)); }