package Ġgh . mm . he xt ure . app . task mgmt Ċ Ċ import Ġgh . mm . he xt ure . domain . tasks . Project Ċ import Ġgh . mm . he xt ure . domain . tasks . Task Ċ import Ġgh . mm . he xt ure . domain . tasks . Task Data Ċ import Ġgh . mm . he xt ure . domain . tasks . TaskId Ċ import Ġgh . mm . he xt ure . domain . users . User Ċ import Ġgh . mm . he xt ure . app . task mgmt . adapter . Task Repository Ċ Ċ class ĠTask Context ( val Ġuser : ĠUser , Ġval Ġproject : ĠProject , Ġprivate Ġval Ġtask Repository : ĠTask Repository ) Ġ{ ĊĊĠĠĠ Ġsuspend Ġfun Ġall Tasks () Ġ= Ġtask Repository . findAll ( project . id ) ĊĊĠĠĠ Ġsuspend Ġfun Ġfind Task ( id : ĠTask Id ) Ġ= Ġtask Repository . findById ( id ) ĊĊĠĠĠ Ġsuspend Ġfun Ġcreate New ( task Data : ĠTask Data ) Ġ= Ġtask Repository . create ( project . id , Ġtask Data ) ĊĊĠĠĠ Ġsuspend Ġfun Ġsave ( task : ĠTask ) Ġ= Ġtask Repository . save ( task ) Ċ } Ċ