/// <summary> /// TODO: /// </summary> /// <param name="id"></param> /// <returns></returns> public async Task <bool> SaveSize(SizeModel model) { var entity = model.MapTo <Size>(); if (model.Id < 1) { await _repository.Insert(entity); } else { await _repository.Update(entity); } return(true); }