public void SetStatusVessel(string id) { var vesselToRemove = _vesselRepository.Get(c => c.VesselC == id); if (vesselToRemove.IsActive == Constants.ACTIVE) { vesselToRemove.IsActive = Constants.DEACTIVE; } else { vesselToRemove.IsActive = Constants.ACTIVE; } _vesselRepository.Update(vesselToRemove); SaveVessel(); }
public static bool Update(int VesselId, string VesselName, string VesselOwner, string Manager, decimal Capacity, int VesselYear, string Flag, bool IsActiveVessel) { return(repository.Update(VesselId, VesselName, VesselOwner, Manager, Capacity, VesselYear, Flag, IsActiveVessel)); }