public int AddStructure(StructureDetailsVM newStructureVM, string userId) { Structure structure = new Structure(); structureMapping.MapStructureEntityFromVM(newStructureVM, structure); var s = _structureRepository.AddStructure(structure, userId); return(s); }
public ResponseMessage AddStructure(StructureDetails structure) { ResponseMessage responseMessage = new ResponseMessage(); responseMessage = _structureRepository.AddStructure(structure); if (responseMessage != null) { return(responseMessage); } else { return(new ResponseMessage() { Message = "", }); } }