Пример #1
0
        public async Task <VesselRequestReturn> Insert(Vessel vessel)
        {
            vessel.code = vessel.code.ToUpper();
            var result = await _repository.InsertAsync(vessel);

            return(result == null ?
                   new VesselRequestReturn().ByVessel(vessel) :
                   new VesselRequestReturn().ByVessel(result));
        }