public bool AddDimensions([FromBody] Dimension[] dimensions) { try { foreach (Dimension dim in dimensions) { _dimRepo.Add(dim); } _dimRepo.SaveChanges(); } catch (Exception e) { return(false); } return(true); }