public static void SaveOrUpdate(IDictionary <string, object> sprint) { try { var sprintObject = Utils.ToObject <Engineer.EMF.Sprint>(sprint); sprintObject.number = int.Parse(sprint["number"].ToString()); service.SaveOrUpdate(sprintObject, new List().GetUserId(), sprint["UserStories"].ToString()); } catch (BadRequestException ex) { throw new Exception(ex.ErrorMessage); } catch (Exception ex) { throw new Exception(ex.Message); } }