public TestTypeMinimal MapToBLL(TestTypeCreate apiTestType) { return(new TestTypeMinimal { Id = 0, TestTypeName = apiTestType.TestTypeName }); }
public async Task <ActionResult <Domain.App.TestType> > PostTestType(TestTypeCreate testType) { var bllEntity = _mapper.MapToBLL(testType); _bll.TestTypes.AddNoReturn(bllEntity); await _bll.SaveChangesAsync(); return(CreatedAtAction("GetTestType", new { id = bllEntity.Id }, testType)); }