public async Task <ApplicationResponse <bool> > CreateAsync(LecturerDto lecturer) { Lecturer domainObj = _mapper.Map <Lecturer>(lecturer); bool created = await _lecturerRepository.CreateAsync(domainObj); lecturer.Id = domainObj.Id; if (created) { return(new ApplicationResponse <bool> { Message = "OK" }); } else { var response = new ApplicationResponse <bool>(); response.AddError("Sorry, Something went wrong"); return(response); } }