private string GetNewEntityJson(Institution_Position entity, bool state) { try { Institution_Position m = entity.ToJson().ToObject <Institution_Position>(); m.State = state; return(m.ToJson()); } catch (Exception ex) { throw new Exception(ex.Message); } }
private string GetNewEntityJson(Institution_Position entity, string positionName, string description, int sort, bool state) { try { Institution_Position m = entity.ToJson().ToObject <Institution_Position>(); m.PositionName = positionName; m.Description = description; m.Sort = sort; m.State = state; return(m.ToJson()); } catch (Exception ex) { throw new Exception(ex.Message); } }